# Build rules

INCLUDE = @MYSQL_INCLUDE@ @PGSQL_INCLUDE@
LIBS    = @LIBS@ @MYSQL_LFLAGS@ @PGSQL_LFLAGS@

all:

	@CC@ -o ../../bin/zabbix_trapper @CFLAGS@ $(INCLUDE) -I../../include  zabbix_trapper.c ../../include/db.c ../../include/functions.c ../../include/expression.c -Wall $(LIBS)
	@CC@ -o ../../bin/zabbix_trapperd @CFLAGS@ $(INCLUDE) -I../../include  zabbix_trapperd.c ../../include/db.c ../../include/functions.c ../../include/expression.c -Wall $(LIBS)

clean:
	rm -fv *.o 
	rm -fv ../../bin/zabbix_trapper
	rm -fv ../../bin/zabbix_trapperd

